<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>

    <template id="sonList">
        <div id="div1" style="background-color: #ccc;">哈哈哈啊</div>
    </template>
    <div id='app'>
        <son id="son" style="color: blue;"></son>
    </div>

    <script>
        const son = {
            template: '#sonList'
        }

        Vue.component('son', son)
    
        const vm = new Vue({
            el: '#app',
            data: {

            },
            components: {
                son
            }
        })
    </script>
</body>

</html>